cmake_minimum_required(VERSION 3.0)

set (CMAKE_CXX_STANDARD 20)

SET(CMAKE_BUILD_TYPE "Release")
SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3")

include_directories(${HOME_UTILITY}/stdBase)
include_directories(${HOME_UTILITY}/stdBase/include)
include_directories(${HOME_UTILITY})
include_directories(${HOME_DATABASE}/manager/parser)
include_directories(${HOME_DATABASE}/manager/netlist)
include_directories(${HOME_THIRDPARTY})
include_directories(${HOME_OPERATION}/fault_sim)
include_directories(${HOME_OPERATION}/fault_sim/source/module)
include_directories(${HOME_OPERATION}/fault_sim/source/module/include)

link_directories(${CMAKE_BINARY_DIR}/lib)

include_directories(${ABSL_INCLUDE_DIR}) 
link_directories(${ABSL_LIB_DIR})

add_subdirectory(source/module/fsim)

add_executable(fault_sim main.cc)

target_link_libraries(fault_sim log str time graph usage stdc++fs fsim netlist_manager)